package com.domain.dto.login;

import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginDto {
    @NotEmpty(message = "用户名为空")
    private String username;
    @NotEmpty(message = "密码为空")
    private String password;
    @NotEmpty(message = "登录错误，请重新登录")
    private String key;
    @NotEmpty(message = "验证码为空或已失效")
    private String code;
}
